﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Spanner;

namespace SpannerWebSite
{
    internal partial class HelloWorldLong : UI
    {
        internal static Html Content()
        {
            return P("Hello, World! (The long way.)");
        }
        internal static void WriteWebPage()
        {
            const string path = Const.DemoWebSitePath;
            var html = Doctype(
                Html(
                    Head(
                        Title("Hello, World! (The long way.)")
                    ),
                    Body(
                        Content(),
                        ViewModelJavaScript()
                    )
                )
            );
            var initAct = (Act)null;
            var webPage = WebPage("HelloWorldLong", html, initAct);
            var ctxt = new Context(path);
            ctxt.WriteWebPage(webPage);
        }
        // END
    }
}
